package com.gxa.jjty.core.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;

import java.sql.Timestamp;

/**
 * @author JJuventus
 * @date 2021/11/16 10:17
 */
@Configuration
public class Swagger3Config {
    @Bean
    public Docket docket() {
        return new Docket(DocumentationType.OAS_30).apiInfo(
                new ApiInfoBuilder()
                        .contact(new Contact("Bill", "bileicn.com",
                                "bilei_cn@163.com"))
                        .title("居家托养服务平台项目")
                        .build()
        ).ignoredParameterTypes(Timestamp.class);
    }
}
